# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-tinydb
_pkgname=tinydb
pkgver=3.15.2
pkgrel=0
pkgdesc="a tiny, document oriented database"
url="https://github.com/msiemens/tinydb"
arch="noarch"
license="MIT"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov py3-yaml"
source="$pkgname-$pkgver.tar.gz::https://github.com/msiemens/tinydb/archive/v$pkgver.tar.gz"
builddir="$srcdir"/${_pkgname/-/_}-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	python3 setup.py test
}
sha512sums="dac3132415120a622e84eda64962dd1bb3253db661228d6118c200d6020c28bc7902760bf5fb9a8589e76815630106436090c6aea6f6715c1a28f72193711444  py3-tinydb-3.15.2.tar.gz"
